import i18n from '@/lang'
export const richShowTbColumns = [
  {
    key: 'updateLevel',
    title: i18n.t('updateLevel'),
    scopedSlots: { customRender: 'updateLevel' },
    width: 200
  },
  {
    title: i18n.t('sjblx'),
    dataIndex: 'packageType',
    key: 'sjblx',
    scopedSlots: { customRender: 'packageType' },
    width: 200
  },
  {
    title: i18n.t('reportingTime'),
    dataIndex: 'acceptTime',
    key: 'acceptTime',
    scopedSlots: { customRender: 'reportingTime' },
    width: 250
  },
  {
    title: i18n.t('updateState'),
    dataIndex: 'ecuStatus',
    key: 'ecuStatus',
    scopedSlots: { customRender: 'updateState' },
    width: 200
  },
  {
    title: i18n.t('operation'),
    dataIndex: '',
    key: 'action',
    scopedSlots: { customRender: 'operation' },
    width: 150
  }
]

export const tableShowTbColumns = [
  {
    dataIndex: 'partNumber',
    key: 'partNumber',
    title: i18n.t('partNumber'),
    scopedSlots: { customRender: 'partNumber' },
    width: 150
  },
  {
    title: i18n.t('partName'),
    dataIndex: 'partName',
    key: 'partName',
    scopedSlots: { customRender: 'partName' },
    width: 150
  },
  {
    title: i18n.t('softDid'),
    key: 'softDid',
    dataIndex: 'softwareDid',
    scopedSlots: { customRender: 'softDid' },
    width: 120
  },
  {
    title: i18n.t('diagnosisID'),
    key: 'diagnosisId',
    dataIndex: 'ecuDiaId',
    scopedSlots: { customRender: 'diagnosisId' },
    width: 120
  },
  {
    title: i18n.t('sjysbb'),
    key: 'sjysbb',
    dataIndex: 'sourceVersionName',
    scopedSlots: { customRender: 'sjysbb' },
    width: 110
  },
  {
    title: i18n.t('sjmbbb'),
    key: 'sjmbbb',
    dataIndex: 'targetVersionName',
    scopedSlots: { customRender: 'sjmbbb' },
    width: 100
  },
  {
    title: i18n.t('updateState'),
    key: 'updateState',
    dataIndex: 'status',
    scopedSlots: { customRender: 'updateState' },
    width: 100,
    special: true
  },
  {
    title: i18n.t('updateDuration'),
    key: 'updateDuration',
    scopedSlots: { customRender: 'updateDuration' },
    width: 100,
    special: true
  }
]
